package com.cookman.controllers;

import com.badlogic.gdx.Game;
import com.cookman.factories.CitiesFactory;
import com.cookman.factories.PlayerFactory;
import com.cookman.serviceLocators.ServiceLocator;
import com.cookman.world.entities.Player;
import com.cookman.world.entities.Roles;
import com.cookman.world.repository.CardsRepository;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Cookman on 18.10.14.
 */
public class GameAlice extends Game {
    @Override
    public void create() {
        AliceUI aliceUI = new AliceUI();
        ServiceLocator.setUIController(aliceUI);
        aliceUI.create(this, createPlayers());
    }

    private List<Player> createPlayers() {
        Map<String, Roles> roles = new LinkedHashMap<String, Roles>();

        roles.put("DISPATCHER", Roles.DISPATCHER);
        roles.put("ENGINEER", Roles.ENGINEER);
        roles.put("EXPERT", Roles.EXPERT);


        roles.put("MEDIC", Roles.MEDIC);
        roles.put("SCIENTIST", Roles.SCIENTIST);
        roles.put("QUARANTINE", Roles.QUARANTINE);

        List<Player> players = PlayerFactory.createPlayers(roles);
        return players;
    }
}
